import App from './App'
import Vue from 'vue'
import './uni.promisify.adaptor'
import {config} from "@/utils/uni-config";

import uView from 'uni_modules/uview-ui'
import store from './store'

import allUrl from '@/utils/zdyurl.js'

import plugins from './plugins' // plugins
Vue.use(plugins)

Vue.use(uView)
// 引入腾讯地图 SDK（注意路径）
const QQMapWX = require('./static/libs/qqmap-wx-jssdk.min.js');

Vue.mixin(allUrl)

Vue.config.productionTip = false
// 挂载到全局
Vue.prototype.$tmap = new QQMapWX({
    key: 'VC5BZ-LKJKN-LUTF4-SXHQD-7X6AS-FFBCZ'  // 替换为你在 lbs.qq.com 申请的 Key
});
Vue.prototype.$imgUrl = config.imgUrl
App.mpType = 'app'
const app = new Vue({
    store,
    ...App
})
app.$mount()
